package com.erp.gather.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.core.web.oldDomain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 采集商品运费试算任务业务对象 erp_collect_product_freight_task
 *
 * @author erp
 * @date 2023-04-20
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ErpCollectProductFreightTaskBo extends BaseEntity {

    /**
     * 采集商品运费试算任务表
     */
    @NotNull(message = "采集商品运费试算任务表不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 采集商品id
     */
    @NotNull(message = "采集商品id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long collectProductId;

    /**
     * 状态（0未计算 1已计算）
     */
    @NotNull(message = "状态（0未计算 1已计算）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer status;

    /**
     * 添加时间
     */
    @NotNull(message = "添加时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date addTime;


}
